<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS绘制icon</title>
    <!-- <link rel="stylesheet" href="https://cssicon.space/css/icons.css"> -->
    <style>
        /* 伪元素 currentColor - 字体颜色color */
        .menu.icon:after {
            content: '';
            position: absolute;
            top: 5px;
            left: 0;
            width: 17px;
            height: 1px;
            background-color: currentColor;
        }

        .menu.icon:before {
            content: '';
            position: absolute;
            top: -5px;
            left: 0;
            width: 17px;
            height: 1px;
            background-color: currentColor;
        }

        .menu.icon {
            color: green;
            position: absolute;
            margin-left: 2px;
            margin-top: 10px;
            width: 17px;
            height: 1px;
            background-color: currentColor;
        }
    </style>

</head>

<body>
    <div class="menu icon"></div>
</body>

</html>